package com.play.ballen.view

import android.content.Context
import android.view.LayoutInflater
import android.widget.TextView
import com.play.ballen.R

class PackChildDestroyHeaderView : BaseHeaderView() {

    override fun registerView(context: Context) {
        val headerView =
            LayoutInflater.from(context).inflate(R.layout.layout_header_pack_child_destroy, null)
        views.add(headerView)
    }

    override fun bindView(type: Int, data: Any) {
        if (type == TYPE_DESTROY_TOTAL) {
            if (data is String) {
                val content = views[0]
                content.findViewById<TextView>(R.id.tvDestroyTotalValue).text = data
            }
        }
    }

}